#include"BinaryTree.h"
#include<stdio.h>


void test()
{
	char a[] = { "ABD##E#H##CF##G##" };
	int count = 0;
	BTNode* root =BinaryTreeCreate(a, 18, &count);
	printf("%d\n", BinaryTreeSize(root));
	printf("%d\n", BinaryTreeLeafSize(root));
	printf("%d\n", BinaryTreeLevelKSize(root,3));
	printf("%d\n", BinaryTreeFind(root, 'G')->_data);
	BinaryTreePrevOrder(root);
	printf("\n");
	BinaryTreePostOrder(root);
	printf("\n");
	printf("%d\n", BinaryTreeComplete(root));

	BinaryTreeLevelOrder(root);
	printf("\n");
	BinaryTreeDestory(&root);
	printf("\n");

}

int main()
{
	test();
	return 0;
}